export const table1Columns = [
    {
      title: '序号',
      type: 'index',
      align:'center'
    },
    {
      title: '联系人',
      key: 'contact_name',
      align:'center'
    },
    {
      title: '所在部门',
      key: 'org',
      align:'center'
    },
    {
      title: '职务',
      key: 'position',
      align:'center'
    },
    {
      title: '联系电话',
      key: 'phone',
      align:'center'
    },
    {
      title: '邮箱',
      key: 'e_mail',
      align:'center'
    }
];

export const table2Columns = [
    {
      title: '序号',
      type: 'index',
      align:'center'
    },
    {
      title: '合作需求',
      key: 'demand',
      align:'center'
    },
    {
      title: '联系人',
      key: 'contact_name',
      align:'center'
    },
    {
      title: '迫切程度',
      key: 'level',
      align:'center'
    },
    {
      title: '预计销售金额',
      key: 'predict_amount',
      align:'center'
    },
    {
      title: '预计签单时间',
      key: 'predict_sign_date',
      align:'center'
    },
    {
      title: '销售阶段',
      key: 'period',
      align:'center'
    },
    {
      title: '需要支援',
      key: 'assist',
      align:'center'
    },
    {
      title: '其他风险点',
      key: 'risk',
      align:'center'
    }
];

export const table3Columns = [
    {
      title:'序号',
      type:'index',
      align:'center'
    },{
      title:'合同负责人',
      key:'responsible_name',
      align:'center'
    },{
      title:'负责部门',
      key:'org_name',
      align:'center'
    },{
      title:'合同金额',
      key:'contract_amount',
      align:'center'
    },{
      title:'合同起始时间',
      key:'contract_end_date',
      align:'center'

    },{
      title:'合同状态',
      key:'status',
      align:'center'
    }
]

export const ruleValidate = {
  customer_name: [
    { required: true, message: '请填写公司名称', trigger: 'change' }
  ],
  tax_num:[
    { required: true, message: '请填写纳税人识别号', trigger: 'change' }
  ],
  address:[
    { required: true, message: '请填写地址', trigger: 'change' }
  ],
  phone_num:[
    { required: true, message: '请填写手机号', trigger: 'change' }
  ],
  bank_account:[
    { required: true, message: '请填写开户行账号', trigger: 'change' }
  ],
  bank:[
    { required: true, message: '请填写开户行', trigger: 'change' }
  ]
}

export const tableColumns = [
  {
    title:'序号',
    type:'index',
    align:'center',
  },
  {
    title:'客户名称',
    key:'customer_name',
    align:'center',
  },
  {
    title:'纳税人识别号',
    key:'tax_num',
    align:'center',
  },
  {
    title:'地址',
    key:'address',
    align:'center',
  },
  {
    title:'操作',
    key:'handle',
    align:'center',
    handle: ['detail','edit', 'delete']
  }
]

const tableData = {
  table1Columns: table1Columns,
  table2Columns: table2Columns,
  table3Columns: table3Columns,
  ruleValidate:ruleValidate,
  tableColumns:tableColumns
};

export default tableData;